buildParallel
fun buildParallel(onFrameWritten: suspend (framesWritten: Int, writtenDuration: Duration) -> Unit = { _, _ -> }): ParallelGifEncoder(source)
Builds a ParallelGifEncoder with the specified parameters.
Return
The constructed ParallelGifEncoder.
Parameters
onFrameWritten
A callback that is invoked after each frame is written, providing the number of frames written and the total duration of all the frames written so far. This can be used to track progress or update a UI.
Throws
If any of the builder parameters are invalid.